package cn.jiedh.app.meiweidk.newpeopleproduct;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * @name： 新人专享实体
 * @author： 周毅
 * @phone： 15826080712
 * @createTime： 2017/12/7
 * @modifyTime： 2017/12/7
 * @explain：
 */

public class NewProduct implements Serializable{
    
    /**
     * productId : 5
     * name : 人人贷理财
     * imgUrl : http://oss-cn-shanghai.aliyuncs.com
     * rate : 0.01
     * rateType : 2
     * adver : 信贷经理专人接单，从提交申请到借款完成，全程1V1专属服务。
     * moneyMin : 200.0
     * moneyMax : 2000.0
     * jianjun : 1000.0
     */

    private int productId;
    private String name;
    private String imgUrl;
    private double rate;
    private int rateType;
    private String adver;
    private int moneyMin;
    private int moneyMax;
    private int jianjun;
    /**
     * rate : 1
     * termMin : 1
     * termMax : 2
     * applyUrl : www.baidu.com
     * successRate : 20.00
     * newWhether : 1
     * hotWhether : 1
     */

    private int termMin;
    private int termMax;
    private String applyUrl;
    private String successRate;
    private int newWhether;
    private int hotWhether;





    public String getRateTypeStr(){
        switch (rateType){
            case 1:
                return "月";
            default:
                return "日";
        }
    }



    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    public int getRateType() {
        return rateType;
    }

    public void setRateType(int rateType) {
        this.rateType = rateType;
    }

    public String getAdver() {
        return adver;
    }

    public void setAdver(String adver) {
        this.adver = adver;
    }

    public int getMoneyMin() {
        return moneyMin;
    }

    public void setMoneyMin(int moneyMin) {
        this.moneyMin = moneyMin;
    }

    public int getMoneyMax() {
        return moneyMax;
    }

    public void setMoneyMax(int moneyMax) {
        this.moneyMax = moneyMax;
    }

    public void setJianjun(int jianjun) {
        this.jianjun = jianjun;
    }

    public int getJianjun() {
        return jianjun;
    }



    public int getTermMin() {
        return termMin;
    }

    public void setTermMin(int termMin) {
        this.termMin = termMin;
    }

    public int getTermMax() {
        return termMax;
    }

    public void setTermMax(int termMax) {
        this.termMax = termMax;
    }

    public String getApplyUrl() {
        return applyUrl;
    }

    public void setApplyUrl(String applyUrl) {
        this.applyUrl = applyUrl;
    }

    public String getSuccessRate() {
        return successRate;
    }

    public void setSuccessRate(String successRate) {
        this.successRate = successRate;
    }

    public int getNewWhether() {
        return newWhether;
    }

    public void setNewWhether(int newWhether) {
        this.newWhether = newWhether;
    }

    public int getHotWhether() {
        return hotWhether;
    }

    public void setHotWhether(int hotWhether) {
        this.hotWhether = hotWhether;
    }
}
